package com.it.gmall.list.client;

import com.it.gmall.model.list.SearchParam;
import com.it.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-list")
public interface ListFeignClient {

    // 热度评分
    @GetMapping("/api/list/inner/incrHotScore/{skuId}/{score}")
    public void incrHotScore(@PathVariable long skuId, @PathVariable Integer score);

    // 搜索商品
    @PostMapping("/api/list/inner/searchItem")
    public SearchResponseVo searchItem(SearchParam searchParam);
}
